import 'package:json_annotation/json_annotation.dart';
import 'package:short_drama/models/home_tab_model.dart';

import 'actor_model.dart';

part 'drama_detail_model.g.dart';

@JsonSerializable()
class DramaDetailModel {
  final num? drama_id;
  final String? drama_name;
  final String? drama_desc;
  final String? drama_director;
  final String? drama_image;
  final num? drama_period;
  final num? stock;
  final num? total_stock;
  final String? point;
  final num? max_num;
  final String? end_time;
  final String? drama_content;
  final num? drama_type;
  final num? residue_rate;
  final num? end_time_timestamp;
  final num? drama_status;
  final List<ActorModel>? actor;

  const DramaDetailModel(
      this.drama_id,
      this.drama_name,
      this.drama_desc,
      this.drama_director,
      this.drama_image,
      this.drama_period,
      this.stock,
      this.total_stock,
      this.point,
      this.max_num,
      this.end_time,
      this.drama_content,
      this.drama_type,
      this.residue_rate,
      this.end_time_timestamp,
      this.drama_status,
      this.actor,
      );

  factory DramaDetailModel.fromJson(Map<String, dynamic> json) =>
      _$DramaDetailModelFromJson(json);

  Map<String, dynamic> toJson() => _$DramaDetailModelToJson(this);
}
